#!/bin/sh
pkgname=libgksu
modname=libgksu
pkgver=2.0.12
xml_lang="zh_CN"
url="http://www.nongnu.org/gksu/index.html"
source="http://people.debian.org/~kov/gksu/${pkgname}-${pkgver}.tar.gz"
configure="--enable-gtk-doc --prefix=/usr --disable-schemas-install"
moddir="$srcdir/libgksu"
docdir="$srcdir/docs"
htmldir="$srcdir/docs/html"
svnroot="https://gtk-doc-cn.googlecode.com/svn/docs/libgksu"
xml_tmpl="project-zh_CN.xml readme-zh_CN.xml"
trans_uri="https://www.transifex.net/projects/p/${modname}-reference-manual/"
team_uri="https://www.transifex.net/projects/p/${modname}-reference-manual/team/zh_CN/"
team_name="LibGKSu参考手册(简体中文)"

make_release()
{
	tmpdir=tmp/svndocs
	if [ -d $tmpdir ];then
		svn update $tmpdir/$modname
	else
		mkdir $tmpdir
		svn checkout $svnroot $tmpdir/$modname
	fi
	if [ -d tmp/html ];then
		cp tmp/html/* $tmpdir/$modname/
		svn status $tmpdir/$modname |grep "?" |awk '{print $2}'|xargs svn add
		find $tmpdir/$modname -maxdepth 1 -type f -name "*.htm*" -exec svn propset "svn:mime-type" "text/html" {} \;
		svn commit -m "update $modname html docs" $tmpdir/$modname
	else
		echo "please make docs first"
	fi
}
